<template>
  <basic-import :columns="columns"
                :api="api"
                :templateUrl="templateUrl"
                templateName="ConsigneeImport" />
</template>

<script>
import BasicImport from "./BasicImport";
import { consignee } from "@/api/index";
export default {
  name: "ConsigneeImport",
  components: { BasicImport },

  data () {
    return {
      columns: [
        {
          label: "发货方名称",
          name: "customerName"
        },
        {
          label: "收货方名称",
          name: "name"
        },
        {
          label: "联系人",
          name: "contactName"
        },
        {
          label: "联系电话",
          name: "contactMobile"
        },
        // {
        //   label: "邮箱",
        //   name: "email"
        // }
      ],
      api: consignee,
      templateUrl: "/excelTemplate/收货方信息导入模版.xlsx"
    };
  },
  methods: {}
};
</script>
